﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using System.Text;
using System.Collections.Generic;

public partial class Controls_NewTypeMeau : System.Web.UI.UserControl
{
    private string _fqhtml;
    public string FQHTML
    {
        set { _fqhtml = value; }
        get { return _fqhtml; }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Init_Meau();
    }
    private void Init_Meau()
    {
        StringBuilder Sb = new StringBuilder();
        List<Model.NewType> types = new List<Model.NewType>();
        BLL.NewType bll_type = new BLL.NewType();
        types = bll_type.GetAllList();
        Sb.Append("<ul class=\"r_cp1\">");        
        foreach (Model.NewType type in types)
        {
            if (type.NT_ISSTOP != "1")
            {
                Sb.Append("<li class=\"r_cl1\">");
                Sb.Append("<a href=\"NewType_" + type.NT_ID.ToString() + ".html\">");
                Sb.Append(type.NT_NAME);
                Sb.Append("</a></li>");
            }
        }
        Sb.Append("</ul>");
        FQHTML = Sb.ToString();
    }
}
